//
//  ResetPasswordView.m
//  Comma
//
//  Created by dlios on 15-1-14.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ResetPasswordView.h"

@interface ResetPasswordView ()<UIAlertViewDelegate>

@end

@implementation ResetPasswordView

- (void)addCustomUI
{
    UILabel * resetLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 140, SCREEN_WIDTH, 44)];
    [resetLabel setText:@"重置密码"];
    [resetLabel setTextAlignment:NSTextAlignmentCenter];
    [resetLabel setFont:[UIFont systemFontOfSize:40]];
    [resetLabel setTextColor:TEXTERGRAY];
    [self addSubview:resetLabel];
    
//    self.upTextField.frame = CGRectMake(16, 356,  SCREEN_WIDTH - 96, 44);
//    [self.upTextField setFont:[UIFont fontWithName:@"Helvetica-Bold" size:14.0f]];
    self.mobileField = [[UITextField alloc] initWithFrame:CGRectMake(16, 268, SCREEN_WIDTH - 32, 44)];
    [self.mobileField setPlaceholder:@"手机号"];
    [self.mobileField setDelegate:self];
    [self addSubview:_mobileField];
    
    self.passWordField = [[UITextField alloc] initWithFrame:CGRectMake(16, 312, SCREEN_WIDTH - 32, 44)];
    [self.passWordField setDelegate:self];
    [self.passWordField setPlaceholder:@"新密码"];
    [self.passWordField setSecureTextEntry:YES];
    [self addSubview:_passWordField];
    
    self.authButton = [UIButton buttonWithType:UIButtonTypeSystem];
    [_authButton setFrame:CGRectMake(SCREEN_WIDTH - 100, 400, 100, 44)];
    [_authButton setTitle:@"发送验证码 >" forState:UIControlStateNormal];
    [_authButton setTitleColor:TEXTGREENCOLOR forState:UIControlStateNormal];
    [self addSubview:_authButton];
    [self.downTextField setFrame:CGRectMake(self.downTextField.frame.origin.x, self.downTextField.frame.origin.y, self.downTextField.frame.size.width - 100, 44)];
    
    self.coverLabel = [[UILabel alloc] init];
    [_coverLabel setTextColor:TEXTGREENCOLOR];
    [_coverLabel setBackgroundColor:[UIColor whiteColor]];
    [_coverLabel setFont:[UIFont systemFontOfSize:15]];
    [self addSubview:_coverLabel];
    [self.upTextField setSecureTextEntry:YES];
}
@end
